home *** CD-ROM | disk | FTP | other *** search
/ Cream of the Crop 21 / Cream of the Crop 21 (Terry Blount) (October 1996).iso / program / cxsplitt.zip / UNIT1.PAS < prev    next >
Pascal/Delphi Source File  |  1996-07-10  |  1KB  |  54 lines

  1. unit Unit1;
  2.  
  3. interface
  4.  
  5. uses
  6.   Windows, Messages, SysUtils, Classes, Graphics, Controls, Forms, Dialogs,
  7.   ComCtrls, StdCtrls, comSplitter, ExtCtrls;
  8.  
  9. type
  10.   TForm1 = class(TForm)
  11.     comSplitter1: TcomSplitter;
  12.     ScrollBox1: TScrollBox;
  13.     comSplitter2: TcomSplitter;
  14.     Panel1: TPanel;
  15.     comSplitter3: TcomSplitter;
  16.     Panel3: TPanel;
  17.     TrackBar1: TTrackBar;
  18.     Memo1: TMemo;
  19.     Memo2: TMemo;
  20.     Memo3: TMemo;
  21.     procedure TrackBar1Change(Sender: TObject);
  22.     procedure comSplitter1Change(Sender: TObject);
  23.     procedure comSplitterDblClick(Sender: TObject);
  24.   private
  25.     { Private-Deklarationen }
  26.   public
  27.     { Public-Deklarationen }
  28.   end;
  29.  
  30. var
  31.   Form1: TForm1;
  32.  
  33. implementation
  34.  
  35. {$R *.DFM}
  36.  
  37. procedure TForm1.TrackBar1Change(Sender: TObject);
  38. begin
  39.   comSplitter1.Position:=TrackBar1.Position;
  40. end;
  41.  
  42. procedure TForm1.comSplitter1Change(Sender: TObject);
  43. begin
  44.   TrackBar1.Position := comSplitter1.Position;
  45. end;
  46.  
  47. procedure TForm1.comSplitterDblClick(Sender: TObject);
  48. begin
  49.   with Sender as TcomSplitter do
  50.     Vertical:=not Vertical;
  51. end;
  52.  
  53. end.
  54.